<!--
 * @Author: Boyin
 * @Date: 2024-11-27 
 * @LastEditors: Boyin
 * @LastEditTime: 2024-11-27
 * @Description: 请填写简介
-->
<template>
    <div>
      <a-breadcrumb style="color:white">
        <a href="https://192.3.96.11:10443/cgi-bin/situationalAwareness.cgi" style="color: white;">
                  <a-breadcrumb-item>首页</a-breadcrumb-item>
      </a>
      <a-breadcrumb-item>系统列表</a-breadcrumb-item>
        <a-breadcrumb-item style="color:aquamarine">证据防篡改</a-breadcrumb-item>
      </a-breadcrumb>
      <block style="marginTop:20px;marginBottom:60px"></block>
      <!-- 开始取证按钮 -->
      <a-button type="primary" @click="startForensics" style="margin: 10px;">
        开始取证
      </a-button>
      <a-alert message="证据防篡改。"
        description="Here Tamper"
        type="info" style="marginTop:160px;marginBottom:20px" />
        <TamperCom></TamperCom>
    </div>
  </template>
  <script>
    import axios from 'axios';
    import TamperCom from "../components/TamperCom.vue"
    import block from "../components/block.vue";
    export default {
      inject: ['reload'],
      components: {
        block,
        TamperCom
      },
      methods: {
        async startForensics() {
          const resData = await axios({
            method: 'post',
            url: '/apilog/createInfo',
            data: {
              "uuid": "10086",
              "info": {
                "start_time": "1421927414",
                "last_time": "1421927416",
                "attack_category": "Reconnaissance",
                "attack_subcategory": "HTTP",
                "protocol": "tcp",
                "source_IP": "175.45.176.0",
                "source_port": "13284",
                "destination_IP": "149.171.126.16",
                "destination_port": "80",
                "attack_name": "Domino Web Server Database Access: /doladmin.nsf (https://strikecenter.bpointsys.com/bps/strikes/recon/http/domino/access_domino_doladmin_nsf.xml)",
                "attack_reference": "-"
              }
            }
          }).then((res) => {
            console.log("start_forensics_res:", res);
            this.reload();
            // this.uuid = res.data.result.uuid;
            // console.log("this.uuid:", this.uuid);
            //this.flag = 1;
            //this.tableRowClass();
          });
        },
      },
    };
  </script>
  <style scoped>
    h2 {
      textAlign: center;
      font-size: 2em;
    }
  </style>